System and method for automatic cloud-based full-data backup and restore on mobile devices

ABSTRACT

A method for storing third-party application data to cloud storage is described herein. The method includes determining to upload data associated with a third-party application stored on a client device to a cloud storage server. The data associated with the third-party application includes both binary data and metadata. The method further includes storing the binary data of the third-party application at a first cloud storage location. The first cloud storage location has a storage address and the metadata is updated to include the storage address. The method includes storing the updated metadata to a second cloud storage location different from the first cloud storage location.

CROSS REFERENCE TO RELATED APPLICATIONS

This application claims the benefit of U.S. Provisional Application No.62/167,148 filed May 27, 2015 and is related to PCT Application NumberPCT/US2016/032878 filed May 17, 2016, each of which is incorporatedherein in its entirety.

FIELD OF THE INVENTION

In general, this disclosure relates to systems and methods for backingup data to cloud storage and restoring data to a mobile device fromcloud storage.

BACKGROUND

Use of mobile devices is increasing as global usage patterns shifttoward content consumption, creation and management on mobile devices.However, mobile devices are a poor platform for data preservation. Theyare easily damaged or rendered inoperable, often resulting in loss oflocally stored content or data. Inaccessible data and content followingfailure of the mobile device may be due to technical reasons orinsufficient data backup functions.

Additionally, users of mobile devices upgrade their devices frequently.In setting up a new device, the user experience is often hindered due toloss of application data and associated settings. This can require theuser to set up a new device from scratch and may result in the loss ofimportant data associated with third-party applications, such as textmessages, photos, application preferences, or any other suitablethird-party application data. Existing backup technologies often rely onthe use of key-value pairs, which only back up certain aspects ofthird-party application data. Using key-value pairs for restoring athird-party application to a client device may restore applicationsettings, but may not restore additional content of the third-partyapplication. Thus a third-party application with settings backed up andsaved as key-value pairs may result in the restoration of thethird-party application environment according to user settings, but theloss of third-party application content generated or stored in thethird-party application by the user. Moreover, existing systems mayrequire developers of third-party applications to specifically configurethe third-party applications to allow backup, or require the user to optin to the backup or trigger the backup manually.

SUMMARY

Systems and methods are disclosed herein for the full-data backup ofapplication data to cloud storage on a per-application basis to make thebackup and restoration of data associated with third-party applicationsmore efficient and reliable. A full-data backup includes all dataassociated with a third-party application including all binary data andmetadata associated with settings, environment, application history,user preferences and application content, as well as any other dataassociated with the third-party application that may be used to run thethird-party application or create the third-party applicationenvironment. Data backups may be periodically initiated by the clientdevice backup framework when it has been determined that a backup shouldoccur. Third-party application data for each application is uploaded toa cloud storage location. In particular, the third-party applicationdata may include two forms of data: binary data and metadata. In thiscase, the binary data may be stored separately from the metadata. Anidentifier that includes the storage location of the binary data may beappended to the metadata, such that the appended metadata includes areference to the cloud storage address of the binary data. Binary dataand metadata have different properties, and may have different optimalstorage solutions. For example, binary data storage may require a meansfor the storage of large amounts of data and the rapid sequential readaccess of bytes. The binary storage may or may not be searchable orotherwise indexed. Metadata storage may have capabilities related to therapid storage of non-binary data along with creating hierarchicalrelationships and propagation of metadata such as ownership data acrossrelated folders and files. Metadata storage also includes means forsearching stored metadata and is equipped to handle such searchesrapidly to support expected user interface response times.

When a user wishes to restore third-party application data to a clientdevice, the user may initiate a device restore process, which restoresthe third-party application data from the cloud storage to the clientdevice. Because third-party application data is restored from full-databackups including both settings and content, data loss is reduced. Thethird-party application, the application environment and the third-partyapplication content are restored from the backup so that a seamlesstransition to a new device is achieved. Restoring from the full-databackups stored in the cloud storage allows a user to restore a deviceback to the exact state as a previous device, including installed apps,settings, and optionally additional content, such as photos, text, andaudio or video files.

In one aspect, a method for storing third-party application data tocloud storage includes determining to upload data associated with athird-party application stored on a client device to a cloud storageserver. The data associated with the third-party application includesboth binary data and metadata. The method further includes storing thebinary data of the third-party application at a first cloud storagelocation. The first cloud storage location has a storage address and themetadata is updated to include the storage address. The method thenincludes storing the updated metadata to a second cloud storage locationdifferent from the first cloud storage location.

In some implementations, the binary data of the third-party applicationincludes full data for the third-party application. In someimplementations, the client device determines whether to upload the databy identifying stored binary data associated with the third-partyapplication that is stored on the client device. In someimplementations, the client device also identifies the previouslyuploaded binary data associated with the third-party application andcomputes a difference between the stored binary data and the previouslyuploaded binary data. The client device compares the difference to athreshold. If the difference is equal to or exceeds the threshold, theclient device determines to upload the data associated with thethird-party application.

In some implementations, the client device stores data associated with aplurality of third-party applications and each third-party applicationin the plurality of third-party applications is associated withcorresponding binary data and corresponding metadata. The correspondingbinary data and the corresponding metadata for each third-partyapplication are uploaded from the client device in a single upload. Insome implementations, the data associated with the third-partyapplication is not duplicated in full on the client device prior todownloading the data. In some implementations, the client devicedetermines to upload the data associated with the third-partyapplication based on a predetermined upload schedule. In someimplementations, the client device determines to upload the dataassociated with the third-party application based on detection ofchanges to the third-party application reported by the third-partyapplication. In some implementations, the client device determines toupload the data associated with the third-party application when theclient device receives a backup request from a user of the clientdevice.

In some implementations, the client device is configured to aggregatethe binary data and the metadata of the third-party application into asingle file and transmit the file to an upload server in the cloudstorage. The upload server is configured to separate the binary datafrom the metadata, transmit the binary data for storage in the firstcloud storage location, append the storage address of the first cloudstorage location to the metadata to obtain the updated metadata andtransmit the updated metadata for storage in the second cloud storagelocation.

In another aspect, a method for providing restoration of third-partyapplication data to a client device includes determining whether toprovide data associated with a third-party application to the clientdevice. The data associated with the third-party application includesbinary data stored in a first cloud storage location having a storageaddress, and metadata stored in a second cloud storage location. Themethod further includes using the metadata to determine the storageaddress of the first cloud storage location and providing the binarydata from the first cloud storage location to the client device.

In some implementations, the binary data of the third-party applicationincludes full data for the third-party application. In someimplementations, the client device stores data associated with aplurality of third-party applications. Each third-party application inthe plurality of third-party applications is associated withcorresponding binary data and corresponding metadata, and thecorresponding binary data for each third-party application aredownloaded to the client device in a single download. In someimplementations, the client device determines to download the dataassociated with the third-party application when the client devicereceives a restore request from a user of the client device. In someimplementations, the data associated with the third-party applicationincludes application data, user preferences and application content. Insome implementations, the client device is a first client device, andthe binary data and the updated metadata are downloaded to a secondclient device, such that the third-party application data on the firstclient device is synchronized with third-party application data on thesecond device.

In some implementations, the binary data and the metadata aretransmitted to a download server in the cloud storage, wherein thedownload server previously wrote the binary data to the first cloudstorage location and previously transmitted the metadata for writing tothe second cloud storage location. In some implementations, the downloadserver previously transmitted the metadata to a cloud storage serviceconfigured to read the updated metadata from the second cloud storagelocation and write the updated metadata to the second cloud storagelocation. In some implementations, data associated with anotherthird-party application includes metadata stored in a third cloudstorage location and does not include binary data. In someimplementations the method for providing restoration of third-partyapplication data to a client device also includes determining whether toprovide the data associated with the other third-party application tothe client device, identifying the metadata associated with the otherthird-party application as a set of key-value pairs stored in the thirdcloud storage location and providing the set of key-value pairs to theclient device.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other features of the present disclosure, including itsnature and its various advantages, will be more apparent uponconsideration of the following detailed description, taken inconjunction with the accompanying drawings in which:

FIG. 1 is a block diagram of a system for uploading data to a cloudstorage service, according to an illustrative embodiment;

FIG. 2 is a block diagram of a client device and a server configured tocooperate to carry out a data upload process, according to anillustrative embodiment;

FIG. 3 is a block diagram showing an illustrative method for uploadingthird-party application data, according to an illustrative embodiment;and

FIG. 4 is a block diagram showing an illustrative method for restoringthird-party application data from the cloud storage system to a device,according to an illustrative embodiment;

FIG. 5 shows a flow chart of a method for storing third-partyapplication data to cloud storage, according to an illustrativeembodiment; and

FIG. 6 shows a flow chart of a method for providing restoration ofthird-party application data to a client device, according to anillustrative embodiment.

DETAILED DESCRIPTION

To provide an overall understanding of the systems and methods describedherein, certain embodiments will now be described, including a systemfor the backup and restoration of third-party application data on aclient device. However, it will be understood by one of ordinary skillin the art that the systems and methods described herein may be adaptedand modified as is appropriate for the application being addressed andthat the systems and methods described herein may be employed in othersuitable applications, and that such other additions and modificationswill not depart from the scope thereof. Generally, the computerizedsystems described herein may comprise one or more engines, which includea processing device or devices, such as a computer, microprocessor,logic device or other device or processor that is configured withhardware, firmware, and software to carry out one or more of thecomputerized methods described herein.

As described herein, the present disclosure provides a system and methodthat performs backing up of full-data associated with a third-partyapplication. Instead of key-value pairs associated with third-partyapplication settings, the full-data associated with the third-partyapplication including settings, history, and content is uploaded tocloud storage. Both binary data and metadata associated with third-partyapplications are backed up by uploading to cloud storage. Metadata for athird-party application may include file name, size, passcode oridentifying number, history of the file, description, current version ofoperating system the third-party application is designed for, and otherstatic metadata. Other files and data in addition to third-partyapplication specific data may also be backed up using a similar method.Such data may include a memory card, SD card, downloads folder, or otherdata repositories not associated with individual apps' data.Additionally, these and other files and data backed up into cloudstorage may be exposed to a user in a cloud-based file storage systemuser interface as fully operable and visible files.

Backup of third-party application data may occur according to apredetermined schedule or as there are changes to third-partyapplication data. For example, a predetermined schedule may require abackup of third-party application data every fixed interval, such asonce a day, once a week, once a month, or any other suitable frequency.As another example, backup may be initiated automatically when it isdetermined that at least a threshold amount of changes have been made tothe third-party application data. In particular, changes to third-partyapplication data may include changes to internal third-party applicationdatabases or settings. In some embodiments, changes to third-partyapplications are recorded in a folder associated with the application.These changes may be accessed by the client device backup framework todetermine whether and upload is required.

In some embodiments, the client device may be configured to allow theuser to customize settings related to the backup. For example, when theclient device is a mobile phone, it may be undesirable for the mobilephone to upload third-party application data to cloud storage when themobile phone is connected to a cellular network, as doing so wouldconsume data in the user's data plan. In this case, the client devicemay be configured to only perform the backup when the mobile device isconnected to a fast, reliable, and/or cheap network, such as a wirelessinternet network. Alternatively, the user may select one or more optionsto enable backup over a cellular network. The backup may be configuredso that required backups determined for multiple third-partyapplications are grouped together and all uploads for those multiplethird-party applications are performed one after the other during anupload session. Multiple required backups for more than one third-partyapplication may also occur continuously as changes are made tothird-party application data. Backups may also be configured to occuronly when specific device requirements are met, such as when a mobiledevice is plugged into a power source, or during idle or non-peak usagehours, such as at night.

FIG. 1 shows a block diagram of a system 100 for uploading data to acloud storage service. The system includes a client device 101,applications 102 a and 102 b (generally, application 102), cloud storage103, a first cloud storage location 104, and a second cloud storagelocation 106. The client device 101 includes third-party applications102 which include associated data. The data may include both binary dataand metadata. The client device determines that an upload should occur.The determination that an upload should occur may be triggered by a useraction, a timed upload or an upload based on changes to the third-partyapplications and application data which may be user-initiated orotherwise. The client device 101 transmits the binary data and themetadata of the third-party application to cloud storage 103. The binarydata of the third-party application is stored at a first cloud storagelocation 104 and the metadata of the third-party application is storedat a second cloud storage location 106 within the cloud storage 103.

Data Upload

FIG. 2 is a block diagram of a system 200 configured to cooperate tocarry out a data upload process. System 200 includes a backup framework208, a backup transport 210 and third-party applications 202 a, 202 b,202 c on a client device 201 (e.g., on the “client side”) and a backupserver 218, upload server 224, cloud storage service 203, and metadatastorage 226 on a server 216 (e.g., on the “server side”). The clientdevice 201 may include a mobile device such as a phone or tablet. Whilethe client device 201 is often described herein as being a mobiledevice, one of ordinary skill in the art will understand that thesystems and methods of the present disclosure are also applicable toperforming backup and restore of application data on any number ofcomputing devices, including desktop computers, laptops, or any othersuitable computing device. The client device 201 stores data associatedwith third-party applications 202 a, 202 b, 202 c, which are incommunication with a backup framework 208 containing a binary backupmodule 209. The backup framework 208 is in communication with a backuptransport 210. The backup framework 208 exists in the device memory andis configured to determine whether the third-party applications 202 a,202 b, 202 c require backup, either by reference to a predeterminedschedule or in response to detection of changes in the application data.The backup framework 208 is configured to allow the comparison of binaryapplication data to previous backups of the third-party application datato determine whether there is a change in the data. This may beaccomplished by a checksum calculation or by determining if there areany application changes recorded in application change folders.

After the client device 201 determines that there is a need for abackup, the binary backup module 209 archives the application data to beuploaded into a single file and sends the file to the backup transport210. The backup transport 210 in FIG. 2 includes two different datatypes that various methods of backup may use. In particular, as is shownin FIG. 2, the backup transport includes a key-value pair section 213and a full-data backup section 212 that includes binary data. Ingeneral, other suitable data types may be used without departing fromthe scope of the present disclosure. After the application data has beensent from the backup framework 208 to the backup transport 210, theclient device 201 calls to the server 216 to begin the upload process.

As is depicted in FIG. 2, the server 216 includes an upload server 224,a backup server 218 containing key-value pair storage 220 and a businesslogic agent 222, a cloud storage service 203, and a metadata storageunit 226. The upload server 224 handles the uploaded binary data and isconfigured to call to the business logic agent 222 in the backup server218 to initiate the storage of associated metadata and the creation oflocation references which can be used to retrieve the data during afuture restore request. The backup server 218 receives requests from theupload server 224 and passes these requests to the cloud storage service203, which prepares metadata for storage in the metadata storage 226.Additionally, structured data related to backups of the client devicemay be stored in a key-value pair storage 220. The structured data mayinclude the device ID, third-party application ID and references to thestorage locations of third-party application data stored in cloudstorage received as a part of the upload method. It may includeadditional information including client device type and date ofmanufacture, timestamps related to recent backups, and informationrelated to the versions of backup framework 208 on the client device201.

In some embodiments, the upload of third-party application data isaccomplished through a series of steps. These steps are illustrated andenumerated in FIG. 3 with some of the components described in relationto FIG. 2:

In step 1 of FIG. 3, when a need for a data upload is determined by theclient device backup framework 208, a backup request message isgenerated with basic metadata related to the third-party applications202 a, 202 b, 202 c requiring backup. The backup request message is sentfrom the client device 201 to the upload server 224. The client devicebackup framework 208 creates a tarball (a .tar archive file) for eachthird-party application 202 a, 202 b, 202 c requiring a new backup. Theclient device backup transport 210 initiates the upload of thethird-party application data tarballs to the upload server 224 bypassing on the backup request message to the upload server 224. Theclient device backup transport 210 also provides metadata related to thethird-party application data upload to the upload server 224. The uploadserver 224 receives the file via a standard upload, binary differentialmethod or a chunked or resumable upload. In embodiments which includebinary differential uploads, the binary and metadata to be uploaded maybe staged in a binary diff library 214 located on the client device 201.The third-party application data to be uploaded may be determined by achecksum method such that only the differences between the third-partyapplication data on the client device 201 compared to existing storeddata is uploaded, along with a structure describing the differencesbetween the two data files.

At step 2, the upload server 224 writes the received third-partyapplication binary data to the binary data storage 223. The binary datastorage 228 is a cloud storage location which is designed for storage oflarge amounts of binary data. The binary data storage 228 cansequentially read access to bytes and serve them in response to a calledlocation. The third-party application metadata is removed for storage ina second cloud storage location (e.g., at the metadata storage 226 inFIG. 2).

At step 3, the upload server 224 receives a binary data storage locationreference for the third-party application binary data which includes thefile location of the uploaded third-party application data. The binarydata storage location reference is a numerical string that can be usedto look up the location in the binary data storage 228 where thethird-party application data has been stored.

At step 4, the upload server 224 provides the binary data storagelocation reference for the third-party application data to a businesslogic agent 222 within the backup server 218 which clones the binarydata location reference. The upload server 224 also provides thethird-party application metadata to the backup server 218.

At step 5, the backup server 218 passes the binary data storage locationreference to the cloud storage service 203 along with the third-partyapplication metadata associated with the stored binary data. The backupserver 218 creates files and folders as required for the correct storageof the metadata. The cloud storage service 203 is able to read and writefiles to the metadata storage 226.

At step 6, the cloud storage service 203 uses the received third-partyapplication metadata and the binary data storage location reference andappends the binary data storage location reference to the metadataentry. Additional descriptors may also be appended to the third-partyapplication metadata such as instructions to not count storage space forthird-party application data against a user's storage quota. The cloudstorage service 203 creates appropriate entries and folders for thestorage of the third-party application metadata in the metadata storage226. The cloud storage service 203 writes the third-party applicationdata to metadata storage 226. The metadata storage 226 is a cloudstorage equipped to store metadata.

At step 7, the metadata storage 226 returns a success signal signifyingthe successful storage of the third-party application metadata. Thesuccess signal includes a reference to the location of the metadata,such that the success signal may be used to look up the location of themetadata.

At step 8, the cloud storage service 203 passes the success signal tothe backup server 218 which records the success signal.

At step 9, the backup server 218 passes the success signal to the uploadserver 224.

At step 10, the upload server 224 returns the success signal to theclient device 201.

Binary data is uploaded to the upload server 224 and stored in thebinary data storage 228. Batching of third-party application data mayoccur in the upload server 224. The corresponding metadata is appendedwith the reference to the binary data storage location and stored in themetadata storage 226. The storage of the metadata in the metadatastorage 226 location is aided by the cloud storage service 203. Afterthe metadata is successfully stored, a success signal is generated bythe metadata storage service 226 and passed back to the backup server218 to the upload server 224 and finally to the client device 201. Thesuccess signal indicates that the third-party application data has beensuccessfully uploaded and stored in cloud storage.

In some embodiments, third-party application data is uploaded from themobile device to the cloud storage per application as a single file. Thethird-party application data for a single third-party application, forexample 202 a, 202 b, or 202 c in FIG. 2, may be uploaded as a .tar typearchive file. Files of this type may be referred to herein as tarballs.Performing the backup on a per-application basis may be advantageous atleast because doing so may increase the likelihood of a successfulupload. In particular, it may be preferable to upload one file at a timeper third-party application, rather than batching the changes tomultiple third-party applications together. Uploads that involve largefiles are more prone to failure than those that involve smaller files.If there is a problem with an upload, only the application data for asingle third-party application needs to be re-uploaded. In this manner,an upload containing only application data related to a singlethird-party application will therefore take less time and the uploadwill be more efficient.

The use of a single file upload per third-party application 202 a, 202b, 202 c during backup requires only small amounts of temporary storageprior to the upload process. The upload process of the third-partyapplication data may be performed such that the data is not duplicatedin a local cache prior to upload, but is streamed directly. Thus, theentire backup payload is never created on disk. Each third-partyapplication data upload may be processed and uploaded as a single passin order to ensure that the uploaded third-party application data iscoherent. Uploading the third-party application data in more than onepass may result in the creation of an incoherent upload process if thereis a change in the third-party application data between two passes.

In some embodiments, it may be difficult to upload the third-partyapplication data in a single pass. This may occur if the upload server224 requires a manifest of byte ranges being sent to the server beprovided at the beginning of the upload. In such cases, a single passupload may not be able to occur because a full pass must first be madethrough the third-party application data files to compute the manifest.In this case, there may not be enough disk space to stage the file forprocessing. A second pass through the third-party application data filefor preparation for upload may not be guaranteed to be the samethird-party application data snapshot as the first pass through. Byinterleaving diff manifest information, such a case may be supported.For example, a single pass upload script may be specified using theformat: {use server copy bytes 0 100, upload these 20 bytes, use serverbytes 120-150}.

Third-party application data backed up to cloud storage is stored asper-app backup data. Only the latest revision of the third-partyapplication data is stored in a location in the cloud storage.Optionally, the upload of data may be accomplished by a binarydifferential method in which only changed data is uploaded to the cloudstorage. Using a binary differential method, the current state of thethird-party application data is compared to a previously uploaded backupand a determination is made of what changes have occurred in thethird-party application data. The comparison of current third-partyapplication data with previous third-party application data backup maybe accomplished by a checksum method. In this approach, checksums oncustom chunk sizes of the last upload of third-party application dataare computed locally on the client device. Rather than uploading theentire set of raw third-party application data, only data indicative ofthe differences may be uploaded to the cloud storage, thereby conservingbandwidth and decreasing the time required for the backup upload. Usingbinary differential protocol for determining changes to third-partyapplication data to be uploaded therefore improves the efficiency of thesingle upload per third-party application method.

In some embodiments, the binary differential method is used to determinewhether an upload of third-party application data should be performedand to determine which changes have occurred to the third partyapplication data and what should be uploaded to the cloud storage. Theclient device backup transport reads data from the third-partyapplication data and processes it incrementally. The client devicebackup framework stores at least one checksum chunk. For each byte thatthe client device backup transport reads, a rolling checksum of the lastN bytes is computed and compared to the checksum of the chunksassociated with the last upload. The checksum of the chunks from thelast upload of the third-party application data is stored on the serverand downloaded for comparison. If there is no match between the newlycomputed checksum and the stored checksum, the oldest byte is sent tothe server. If there is a match, the chunk is not uploaded to the cloudstorage.

In some embodiments, the backup of third-party application data isconfigured to be automatic and to occur according to a set schedule. Thethird-party application data backup and upload may be automatic andcommon to all third-party applications 202 a, 202 b, 202 c such that thedevelopers of third-party applications are not required to alter theirthird-party application configurations in any way in order to back upthe third-party application data in this system. Developers ofthird-party applications 202 a, 202 b, 202 c may opt out of the backupby changing the configuration details or manifest of their third-partyapplications 202 a, 202 b, 202 c. Examples of third-party applications202 a, 202 b, 202 c for which a full data backup may not be advisableare financial applications, password storage applications orauthenticators. These third-party applications 202 a, 202 b, 202 c withdevelopers who have opted out of the automatic backup may still bebacked up by alternate manual mechanisms by the user or third-partyapplication 202 a, 202 b, 202 c.

Once the third-party application data has been uploaded to and stored incloud storage, the backup of the third-party application data may behidden from a view of the user but still associated with the user'scloud storage account. Alternatively, the backup of the third-partyapplication data may be accessible to the user through a user interfacein the cloud storage file system. Accessing the backup of thethird-party application data through the user interface allows the userto make changes or manipulate the third-party application data or otherdata while in the cloud storage system. For example, a backup of datarelated to a photo-editing third-party application may include edited orunedited photos which the user may access and edit or manipulate in thebackup files through a user interface of the cloud storage file systemassociated with his or her account. A user may also access the backup ofthe third-party application data in order to delete a backup of thedata.

In some embodiments, the backup of the third-party application data isstored in hierarchical folders in the cloud storage system. Thethird-party application binary data and metadata may be stored within afolder associated with the user. The folders which contain backup dataare organized in such a way so that the client device and thethird-party application are identifiable. This may include an ObjectFamily Root Folder associated with the third-party application databackups for a client device, client device ID, stored third-partyapplication data backups, application signifier such as name and in somecases the tarball for the third-party application data file. The ObjectFamily Root Folder may not be available to the user despite beingassociated with the user's account. This folder may also not be syncedduring syncing events.

Data Restore

In accordance with the systems and methods of the present disclosure,the third-party application data that is stored in cloud storage may berestored to a client device 201. To implement the restoration path, thethird-party application data may be retrieved following a command by theclient device 201. During the restoration of third-party applications202 a, 202 b, 202 c, the upload server 224 may be configured to downloaddata. In this instance the upload server 224 may be referred to as adownload server 230. Restoring the third-party application data from thecloud storage system to a device can be done on a per-application basisusing the following steps, illustrated in FIG. 4 with some of thecomponents described in FIG. 2:

At step 1 of FIG. 4, upon restoration of a device, the client device 201backup transport 210 initiates the third-party application data downloadby sending a device ID and a third-party application ID to the backupserver 218. This identifies the client device 201 and user as well asthe third-party application 202 a, 202 b, 202 c for which dataassociated with the user is requested.

At step 2, the backup server 218, upon receiving the identifyinginformation and third-party application data restore request from theclient device 201, sends the success signal from the last successfulbackup of the third-party application data back to the client device201. The success signal contains a reference to the metadata storagelocation.

At step 3, the client device backup transport 210 connects with thedownload server 230, sending the success signal with metadata storagelocation reference to the download server 230.

At step 4, the download server 230 uses the metadata storage locationreference to request the third-party application metadata from themetadata storage 226.

At step 5, the download server 230 receives the third-party applicationmetadata as well as the binary storage location reference which wasappended to the metadata during backup of the third-party applicationdata.

At step 6, the download server 230 uses the binary storage locationreference to request the third-party application binary data from thebinary data storage 228.

At step 7, the third-party application binary data is extracted from thebinary data storage 228 and sent to the download server 230.

At step 8, the download server 230 provides the requested third-partyapplication binary and metadata directly to the client device backuptransport 210. The client device backup transport 210 extracts thedelivered data to a specific location in the client device storageassociated with the storage of third-party application data. Eachthird-party application 202 a, 202 b, 202 c for which data is restoredto the device may have a distinct location within the client devicestorage designated for storage of data. Thus, the client device backuptransport 210 implements the third-party application 202 a, 202 b, 202 conto the client device 201, restoring all third-party applicationsettings and files.

The above-described restoration method may be performed during the setupprocess for setting up a new device. When an account is added to theclient device 201, the client device's backup framework 208 may checkfor whether a backup is already stored in cloud storage. If so, thethird-party application data is restored for each third-partyapplication 202 a, 202 b, 202 c. For example, the client device 201queries the backup server 218 about a third-party application 202 a, 202b, or 202 c. If the backup server 218 provides a success signal to theclient device 201, this may indicate that a backup of the applicationexists in the cloud storage.

If it is determined during a restore request that there exists a backupof the third-party application data for a particular requestedthird-party application 202 a, 202 b, 202 c, the process of downloadingthe third-party application data begins. The binary data storagelocation reference is retrieved from the stored metadata. Using thebinary data storage location reference to locate the appropriatethird-party application binary data in the binary data storage 228, thetarball file (.tar archive file) is downloaded from the binary datastorage 228 by the download server 230. The download server 230 servesthe third-party application data to the client device 201. If a backupfor a requested third-party application is not identified, alternativemeans of restoring third-party application settings will be attempted,including key-value pairs.

Restoring the third-party application data from cloud storage onto a newdevice allows the user to experience the same environment and settingsin third-party applications 202 a, 202 b, 202 c on the device and thesame environment within the third-party application 202 a, 202 b, 202 cas on a previous device upon restore. This may include user preferencessuch as what the application looks like and how it functions. Dataspecific to the application including data stored in the application isalso restored. For example, stored data for a third-party applicationwhich is a text messaging application might include texts, photos,audiofiles, text message history and contacts. These would be stored inthe cloud storage by the described upload method and restored to thedevice by a restore request. Following the restoration of third-partyapplication data, the backup of the third-party application data ismaintained in cloud storage for use in additional restore or downloadrequests.

In some embodiments, a user may initiate a restore request in order tosync a second device with a first device which has uploaded third-partyapplication data to cloud storage. The user may initiate a restoreprocess which functions as a means to sync the third-party applications202 a, 202 b, 202 c between the two devices so that the third-partyapplications 202 a, 202 b, 202 c contain the same application settings,environments and content.

In some embodiments, the systems and methods of the present disclosuremay be implemented in a manner that maintains backwards compatibilitywith existing backup methods. The restoration process may give a userthe option of restoring third-party application data from a backup whichwas created with an older version of the backup protocol, for example abackup protocol which relies on the use of key-value pairs. In this way,a client device 201 operating with the software required for backup andrestore according to the method described here, may request a restorefrom a backup made using a previous backup method. A user can alsorestore third-party application data from a backup made with thedescribed method while using backup and restore software which is older.The restore made with older backup and restore software will succeed, asthe older backup software will ignore the success signal containing themetadata storage location reference as well as the new data and willrely instead on key-value pairs stored with the metadata for therestore.

The backup and restore method is backwards compatible and does notrequire the migration of previous backups executed by the key-value pairmethod to be migrated. The method of backup described here is compatiblewith backups including key-value pairs. Additionally, the use of thedescribed backup method requires an initial full backup of allapplication data in order to establish a full record of the third-partyapplication files. These files are used for comparison to thethird-party application data existing on the client device in order todetermine the need for a backup. The full initial backup of athird-party application 202 a, 202 b, 202 c upon receiving access to thebackup method eliminates the need for any previous key-value pair backup files. In some embodiments, the key-value pairs containingthird-party application data which were previously backed up are alsobacked up as part of the full data backup.

When a device is decommissioned, the third-party application datapreviously stored on the device may be restored to a new device.However, decommissioned devices may lead to the existence of “orphaneddatasets” where the third-party application data has been stored in thecloud but is no longer connected to a user or functioning client device201. Methods may be undertaken to remove these orphaned datasets.Orphaned datasets may be set to expire after some period of time.Alternatively, a user may signal that a device has been decommissionedor will become inactive through a user interface on the device or in auser account associated with the client device 201.

During phase-in of the new backup and restore method, there may be anoverwhelming amount of data flow to cloud storage as third-partyapplication data for client devices 201 are backed up in full. Duringthe initial roll-out of this backup feature, the upload flow may becontrolled by mechanisms on both the client and server side. Forexample, user access to the upload and restore functions may be limitedbased on the device. The client device may be configured so as to set ordisable a feature on a particular client device or client device model.Alternatively, the feature may be rolled out to only a percentage ofusers of the client device, allowing time for the initial uploads ofthird-party application data to occur for these users before rolling outthe feature to an additional percentage of users. Additionally, theaccess to the upload and restore feature may be limited based on thethird-party application, with more third-party applications beingcovered by the upload and restore functionality over time. Theconfigurations of the backup period can also be changed in order tocontrol the data flow by toggling between two modes. According to afirst mode, the upload process may be initiated when there is asufficient amount of change to the third-party application data.According to a second mode, the upload process may be initiated based ona predetermined schedule, such as once every N days.

On the server side, the flow of data may be controlled by theimplementation of throttling levers on the servers such as flags orfeature switches. The flags or feature switches are readable by theupload server and the backup server. Above set server limits the flagreturns a custom error code indicating a failure due to throttling. Thiscustom error code also includes a field indicating a time periodadvisable to wait before another attempt is made. Additional flags mayalso be incorporated in order to protect downstream services inemergencies which would disable the entire upload call.

FIG. 5 shows a flowchart illustrating a method 500 for storingthird-party application data to cloud storage. The method 500 includesthe steps of determining to download data associated with a third-partyapplication to a cloud storage server (step 502), storing the binarydata of the third-party application at a first cloud storage location(step 504), updating the metadata to include the storage address of thefirst cloud storage location (step 506), and storing the updatedmetadata to a second cloud storage location different from the firstcloud storage location (step 508).

In step 502, the client device backup framework (e.g., 208 in FIG. 2)determines that data associated with a third-party application on aclient device should be downloaded to a cloud storage server. Therequirement to download third-party application data to a cloud storageserver may be determined based on a scheduled download, a user requestto upload the data or a change in third-party application data. In someimplementations, the requirement to download third-party applicationdata may be determined by a comparison between third-party applicationdata currently stored in the cloud storage server to the third-partyapplication data stored on the client device using a checksum method.The third-party application data to be downloaded to cloud storageincludes both binary data and metadata.

In step 504, the binary data is stored in a first cloud storagelocation. The cloud storage location has an associated storage address.The binary data associated with the third-party application is sent fromthe client device backup transport (e.g., 210 in FIG. 2) to the uploadserver as a data tarball (e.g., .tar archive file). The binary data isstored in a first cloud storage location designed for the storage oflarge amounts of binary data.

In step 506, the metadata associated with the third-party application isupdated to include the storage address of the first cloud storagelocation. The cloud storage service (e.g., 203 in FIG. 2) appends thebinary storage address to the metadata. The binary data can thus beassociated with the third-party metadata and may be retrieved using thecloud storage address in the updated metadata. The storage location maybe a numerical string pointing to the file location of the third-partyapplication binary data. In some implementations, the cloud storageservice may also append additional descriptors and instructions to themetadata before storage.

In step 508, the updated metadata is stored at a second cloud storagelocation. The second cloud storage location is different than the firstcloud storage location and is optimized for the storage of metadata. Asuccess signal may be returned to the upload server following successfulstorage of the binary data and metadata. The success signal mayadditionally include a reference to the location of the metadata to beused to access the metadata.

FIG. 6 shows a flowchart illustrating a method 600 for providingrestoration of third-party application data to a client device. Themethod 600 includes the steps of determining whether to provide dataassociated with a third-party application to a client device from cloudstorage (step 602), using metadata to determine the storage address ofthe first cloud storage location (step 604), and providing binary datafrom the first storage location to the client device (step 606).

In step 602, it is determined whether a restoration is required toprovide data associated with a third-party application to a clientdevice. The restoration may be in response to a request or selectionfrom a user or a request by a third-party application. The restorationmay also be implemented as a synch between devices. The data associatedwith the third-party application includes both binary data stored in afirst cloud location with a storage address and metadata stored in asecond cloud storage location. The client device backup transport (e.g.,210 in FIG. 2) initiates the data download by sending a device IDassociated with the client device and a third-party application IDassociated with a third-party application to the backup server (e.g.,218 in FIG. 2).

Step 604 includes using the previously stored metadata associated withthe third-party application to determine the storage address of thebinary data. After receiving the identifying information including thedevice ID and third-party application ID, the backup server sends thesuccess signal from the last successful backup of the third-partyapplication data to the client device. The success signal includes areference to the metadata storage location. The metadata can then beretrieved from the metadata storage in order to obtain the binarystorage location reference which was appended to the metadata during aprevious backup of third-party application data.

In step 606, the retrieved binary data storage location address is usedto locate and request the binary data associated with the third-partyapplication. The binary data and the metadata are transmitted by thedownload server to the client device via the backup transport. Thebinary data and metadata is delivered to storage on the client device.

While various embodiments of the present disclosure have been shown anddescribed herein, it will be obvious to those skilled in the art thatsuch embodiments are provided by way of example only. Numerousvariations, changes, and substitutions will now occur to those skilledin the art without departing from the disclosure. It should beunderstood that various alternatives to the embodiments of thedisclosure described herein may be employed in practicing thedisclosure.

What is claimed is:
 1. A method for storing mobile device data to cloudstorage, the method comprising: detecting, by a first mobile device of auser, a predetermined condition to backup data associated with the firstmobile device to the cloud storage; and in response to detecting thepredetermined condition, automatically performing operations forgenerating a plurality of single files for a plurality of third partyapplications hosted by the first mobile device, wherein for eachthird-party application of the plurality of third party applicationshosted by the mobile device, a set of performed operations comprises:identifying, by the first mobile device data associated with arespective third-party application stored on the first mobile device,wherein the data associated with the respective third-party applicationincludes binary data and metadata, the binary data comprising settingsof the respective third-party application, history of the respectivethird-party application, and content of the respective third-party, thebinary data being separate from and having different format than themetadata of the respective third-party application; aggregating, by thefirst mobile device, the binary data and the metadata of the respectivethird-party application into a single file of the respective third-partyapplication; and backing up the single file of the respectivethird-party application to an upload server in the cloud storage,wherein the binary data of the respective third-party application is tobe separated from the metadata of the respective third-party applicationand stored in a first cloud storage location of the cloud storage, andwherein the metadata of the respective third-party application is to beupdated with an appended separate storage address of the first cloudstorage location and stored in a second cloud storage location of thecloud storage, wherein the plurality of single files of the plurality ofthird-party applications are stored in the cloud storage for subsequentrestoring of the binary data and the metadata of each third-partyapplication of the plurality of third party applications to a secondmobile device of the user.
 2. The method of claim 1, wherein the firstmobile device determines whether to backup the data by: identifyingstored binary data associated with the respective third-partyapplication that is stored on the first mobile device; identifyingpreviously backed up binary data associated with the respectivethird-party application; computing a difference between the storedbinary data and the previously backed up binary data; and comparing thedifference to a threshold.
 3. The method of claim 2, wherein if thedifference is equal to or exceeds the threshold, the first mobile devicedetermines to back up the data associated with the respectivethird-party application.
 4. The method of claim 1, wherein the firstmobile device stores data associated with a plurality of third-partyapplications, each third-party application in the plurality ofthird-party applications is associated with corresponding binary dataand corresponding metadata, and the corresponding binary data and thecorresponding metadata for each third-party application are backed upfrom the first mobile device in a single upload.
 5. The method of claim4, wherein the data associated with the respective third partyapplication is not duplicated in full on the first mobile device priorto transmitting the binary data and the metadata.
 6. The method of claim1, wherein the binary data of the respective third-party applicationincludes full data for the respective third-party application.
 7. Themethod of claim 1, wherein the predetermined condition comprises apredetermined upload schedule.
 8. The method of claim 1, wherein thepredetermined condition comprises detection of changes to the respectivethird-party application data reported by the respective third-partyapplication.
 9. The method of claim 1, wherein the predeterminedcondition comprises receiving, by the first mobile device, a backuprequest from a user of the first mobile device.
 10. A system to storedata associated with a first mobile device of a user to cloud storage,comprising: a memory; and a processing device, coupled to the memory,to: detect a predetermined condition to backup the data associated withthe first mobile device to the cloud storage; and in response todetecting the predetermined condition, automatically perform operationsfor generating a plurality of single files for a plurality of thirdparty applications hosted by the first mobile device, wherein for eachthird-party application of the plurality of third party applicationshosted by the mobile device, a set of performed operations comprises:identifying data associated with a respective third-party applicationstored on the first mobile device, wherein the data associated with therespective third-party application includes binary data and metadata,the binary data comprising settings of the respective third-partyapplication, history of the respective third-party application, andcontent of the respective third-party, the binary data being separatefrom and having different format than the metadata of the respectivethird-party application; aggregating the binary data and the metadata ofthe respective third-party application into a single file of therespective third-party application; and backing up the single file ofthe respective third-party application to an upload server in the cloudstorage, wherein the binary data of the respective third-partyapplication is to be separated from the metadata of the respectivethird-party application and stored in a first cloud storage location ofthe cloud storage, and wherein the metadata of the respectivethird-party application is to be updated with an appended separatestorage address of the first cloud storage location and stored in asecond cloud storage location of the cloud storage, wherein theplurality of single files of the plurality of third-party applicationsare stored in the cloud storage for subsequent restoring of the binarydata and the metadata of each third-party application of the pluralityof third party applications to a second mobile device of the user. 11.The system of claim 10, wherein the processing device to store dataassociated with a plurality of third-party applications, eachthird-party application in the plurality of third-party applications isassociated with corresponding binary data and corresponding metadata,and the corresponding binary data and the corresponding metadata foreach third-party application are backed up from the first mobile devicein a single upload.
 12. The system of claim 11, wherein the dataassociated with the respective third party application is not duplicatedin full on the first mobile device prior to transmitting the binary dataand the metadata.
 13. The system of claim 10, wherein the binary data ofthe respective third-party application includes full data for therespective third-party application.
 14. The system of claim 10, whereinto determine whether to back up the data, the processing device to:identify stored binary data associated with the respective third-partyapplication that is stored on the first mobile device; identifypreviously backed up binary data associated with the respectivethird-party application; compute a difference between the stored binarydata and the previously backed up binary data; compare the difference toa threshold; and responsive to determining that the difference is equalto or exceeds the threshold, determine to back up the data associatedwith the respective third-party application.
 15. The system of claim 10,wherein to detect the predetermined condition, the processing device todetect at least one of a predetermined upload schedule, a change to therespective third-party application data reported by the respectivethird-party, or a backup request received from a user of the firstmobile device.
 16. A non-transitory computer-readable medium to storeinstructions, which when executed by one or more processing devices,cause the one or more processing devices to: detect a predeterminedcondition to backup data associated with a first mobile device of a userto cloud storage; and in response to detecting the predeterminedcondition, automatically perform operations for generating a pluralityof single files for a plurality of third party applications hosted bythe first mobile device, wherein for each third-party application of theplurality of third party applications hosted by the mobile device, a setof performed operations comprises: identifying data associated with arespective third-party application stored on the first mobile device,wherein the data associated with the respective third-party applicationincludes binary data and metadata, the binary data comprising settingsof the respective third-party application, history of the respectivethird-party application, and content of the respective third-party, thebinary data being separate from and having different format than themetadata of the respective third-party application; aggregating thebinary data and the metadata of the respective third-party applicationinto a single file of the respective third-party application; andbacking up the single file of the respective third-party application toan upload server in the cloud storage, wherein the binary data of therespective third-party application is to be separated from the metadataof the respective third-party application and stored in a first cloudstorage location of the cloud storage, and wherein the metadata of therespective third-party application is to be updated with an appendedseparate storage address of the first cloud storage location and storedin a second cloud storage location of the cloud storage, wherein theplurality of single files of the plurality of third-party applicationsare stored in the cloud storage for subsequent restoring of the binarydata and the metadata of each third-party application of the pluralityof third party applications to a second mobile device of the user. 17.The computer-readable media of claim 16, wherein to determine whether toback up the data, the one or more processing devices to: identify storedbinary data associated with the respective third-party application thatis stored on the first mobile device; identify previously backed upbinary data associated with the respective third-party application;compute a difference between the stored binary data and the previouslybacked up binary data; compare the difference to a threshold; andresponsive to determining that the difference is equal to or exceeds thethreshold, the one or more processing devices determine to back up thedata associated with the respective third-party application.
 18. Thecomputer-readable media of claim 16, wherein the one or more processingdevices to store data associated with a plurality of third-partyapplications, each third-party application in the plurality ofthird-party applications is associated with corresponding binary dataand corresponding metadata, and the corresponding binary data and thecorresponding metadata for each third-party application are backed upfrom the first mobile device in a single upload.
 19. Thecomputer-readable media of claim 16, wherein the data associated withthe respective third party application is not duplicated in full on thefirst mobile device prior to transmitting the binary data and themetadata.
 20. The computer-readable media of claim 16, wherein to detectthe predetermined condition, the one or more processing devices todetect at least one of a predetermined upload schedule, a change to therespective third-party application data reported by the respectivethird-party, or a backup request received from a user of the firstmobile device.